package com.opencloud.iot.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.opencloud.iot.client.model.entity.IotRaspiBind;
import com.opencloud.iot.client.model.entity.IotRaspiBindInfo;
import com.opencloud.iot.client.model.entity.IotRaspiInfo;
import com.opencloud.iot.client.model.entity.IotWatchinfo;
import com.opencloud.common.model.PageParams;

import java.util.List;

/**
 *  服务类
 *
 * @author yeyong
 * @date 2019-07-03
 */
public interface IotWatchinfoService {
    /**
     * 分页查询
     *
     * @param pageParams
     * @return
     */
    IPage<IotWatchinfo> findListPage(PageParams pageParams);

    IotRaspiInfo getIotRaspiInfoByMac(String mac);
    IotRaspiBind deleteIotRaspiBind(IotRaspiBind entiy);
    List<IotRaspiBind> getIotRaspiBindByClassId(Integer classid);
    IotRaspiBind addIotRaspiBind(IotRaspiBind entiy);
    List<IotRaspiInfo> findIotRaspiInfoList(PageParams pageParams);
    IotRaspiInfo getIotRaspiInfoById(Integer id);
    IotRaspiInfo updateIotRaspiInfo(IotRaspiInfo entiy);
    IotRaspiInfo addIotRaspiInfo(IotRaspiInfo entiy);
    List<IotRaspiBindInfo> getIotRaspiBindList(String mac,Integer gid,Integer classid);
}
